package cn.shenlong.portal.service;

import java.util.List;
import java.util.Map;

import cn.shenlong.common.Page;
import cn.shenlong.common.Pagination;
import cn.shenlong.portal.domain.Icon;

public interface IconService {

	/**
	 * 保存icon图
	 * 
	 * @param icon
	 */
	public void save(Icon icon, long iconId);

	/**
	 * 显示分页数据
	 * 
	 * @param Icon
	 * @return
	 */
	public Pagination findIcon(Icon icon, Map<String, Object> otherParm, Integer pageSize, Integer pageNo);

	public Page<Icon> findPageByParm(Map<String, Object> otherParm, Integer pageNo, Integer pageSize);
	
	/**
	 * 查询内容
	 * 
	 * @param IconId
	 * @return
	 */
	public Icon findIconByIconId(long iconId);

	public Icon updateIcon(Icon icon);

	public void deleteIcon(Long[] iconId);

	public void deleteByIconId(List<Long> iconId);

	public void save(Icon icon);
}
